<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style type="text/css">
    body {
        margin: 0;
        padding: 0;
    }
    
    .main {
        width: 800px;
        margin: 50px auto;
    }
    
    .btn {
        width: 100px;
        height: 40px;
    }
    
    .map {
        position: relative;
        width: 750px;
        height: 450px;
        border: 10px groove gray;
        background: #ccc;
        box-sizing: border-box;
    }
</style>

<body>
    <div class="main">
        <button class="btn1" id="start">开始游戏</button>
        <button class="btn2" id="pause">暂停游戏</button>
        <button class="btn3" id="stop">停止游戏</button>
        <div class="map" id="map"></div>
    </div>
</body>

</html>
<script src="./snake.js"></script>